package nc.ui.budget.tools.myDialog;

import java.awt.Frame;
import java.awt.Rectangle;
import javax.swing.JTextArea;
import javax.swing.JLabel;
import javax.swing.JButton;

public class AddDlg extends Frame {

	private static final long serialVersionUID = 1L;
	private JTextArea jTxtAdd1 = null;
	private JLabel jLblResult = null;
	private JTextArea jTxtAdd2 = null;
	private JButton jBtnCount = null;

	/**
	 * This is the default constructor
	 */
	public AddDlg() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		jLblResult = new JLabel();
		jLblResult.setBounds(new Rectangle(19, 129, 259, 31));
		jLblResult.setText("JLabel");
		this.setLayout(null);
		this.setSize(300, 200);
		this.setTitle("Frame");

		this.add(getJTxtAdd1(), null);
		this.add(jLblResult, null);
		this.add(getJTxtAdd2(), null);
		this.add(getJBtnCount(), null);
	}

	/**
	 * This method initializes jTxtAdd1	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTxtAdd1() {
		if (jTxtAdd1 == null) {
			jTxtAdd1 = new JTextArea();
			jTxtAdd1.setBounds(new Rectangle(19, 56, 97, 25));
			jTxtAdd1.addPropertyChangeListener("document",
					new java.beans.PropertyChangeListener() {
						public void propertyChange(java.beans.PropertyChangeEvent e) {
							System.out.println("propertyChange(document)"); // TODO Auto-generated property Event stub "document" 
						}
					});
		}
		jLblResult.setText(jTxtAdd1.getText());
		return jTxtAdd1;
	}

	/**
	 * This method initializes jTxtAdd2	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTxtAdd2() {
		if (jTxtAdd2 == null) {
			jTxtAdd2 = new JTextArea();
			jTxtAdd2.setBounds(new Rectangle(159, 52, 98, 37));
			jTxtAdd2.addPropertyChangeListener("document",
					new java.beans.PropertyChangeListener() {
						public void propertyChange(java.beans.PropertyChangeEvent e) {
							System.out.println("propertyChange(document)"); // TODO Auto-generated property Event stub "document" 
						}
					});
		}
		jLblResult.setText(jTxtAdd2.getText());
		return jTxtAdd2;
	}

	/**
	 * This method initializes jBtnCount	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJBtnCount() {
		if (jBtnCount == null) {
			jBtnCount = new JButton();
			jBtnCount.setBounds(new Rectangle(45, 93, 75, 28));
			jBtnCount.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
				}
			});
		}
		jLblResult.setText(jTxtAdd1.getText()+jTxtAdd2.getText());
		return jBtnCount;
	}

}
